package com.wanbangee.marksystem.service;

import java.util.Map;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 提供给其他服务调用的接口
 * @author yongcode
 *
 */
@FeignClient(value="kaoJinBang-userCenter-provider")
public interface GradeClientService {
	/**
	 * 根据学校Id查询正常状态的年级信息
	 * @param schId
	 * @return
	 */
/*	@GetMapping("/gradeManage/selectGradeBySchId")
	public Map<String, Object> selectGradeBySchId(@RequestParam(value="schId") Integer schId);*/
	
	/**
	 * 根据年级ID查询班级信息
	 * @param schId
	 * @param graId
	 * @return
	 */
	@GetMapping("/classManage/selectClassInfoBySchIdAndGraId")
	public Map<String, Object> selectClassInfoBySchIdAndGraId(@RequestParam(value="graId",defaultValue= "-1") Integer graId);
}
